/**
 * 
 */
package com.onstar.cn.map.common;

/**
 * @author Qiying Gong
 * 
 * @Created 2013-4-17
 */
public enum Language {
	ZH_CN("zh-CN"), 
	EN_US("en-US");

	String value;

	Language(String value) {
		this.value = value;
	}

	public String getValue() {
		return this.value;
	}
	
	public static Language fromValue(String v) {
		for (Language c : Language.values()) {
			if (c.value.equals(v)) {
				return c;
			}
		}
		return null;
	}
}
